package com.qiaoanju.back.service.system;

import com.qiaoanju.back.domain.system.GroupModel;

import java.util.List;

/**
 * Created by eversec
 * on 2017/9/23.
 */
public interface IGroupService {


    /**
     *
     * @param group_id
     * @return
     */
    GroupModel getGroupById(Integer group_id);


    int insert(GroupModel group);

    /**
     * 获取全部部门
     * @param root
     * @return
     */
    List<GroupModel> getAllGroups(int root);

    /**
     * 获取一级部门
     * @param root
     * @return
     */
    List<GroupModel> getChildsByRoot(int root);

    /**
     *
     * @param group
     * @return
     */
    boolean edit(GroupModel group);
}
